<?php
/**
 * Project: Recipe
 * File: RoleUserModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-5-3
 * Time: 下午3:30
 */

class RoleUserModel extends RelationModel{

	protected $_link = array(

		'User'=>array(
			'mapping_type'=>BELONGS_TO,
			'class_name'=>'User',
			'mapping_name'=>'userinfo',
			'foreign_key'=>'userid',
			'mapping_fields'=>'username,email',
		)

	);

}